package com.yanyu.space.sys.bean.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.yanyu.space.common.core.bean.db.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 系统用户
 *
 * @author yanyu
 */
@Data
@TableName("sys_user")
@ApiModel(value = "User对象", description = "系统用户")
public class User extends BaseEntity {

    @ApiModelProperty(value = "登录名")
    private String userName;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "真实姓名")
    private String realName;

    @ApiModelProperty(value = "性别，数据字典")
    private String sex;

    @ApiModelProperty(value = "生日")
    private Date birthday;

    @ApiModelProperty(value = "头像地址")
    private String avatar;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "email地址")
    private String email;

    @ApiModelProperty(value = "是否是超级管理员用户；0：不是；1：是")
    private Integer sysFlag;

    @ApiModelProperty(value = "启用状态, 1：启用；0：禁用")
    private Integer enabled;

    @ApiModelProperty(value = "密码失效时间")
    private LocalDateTime passwordValid;

    @ApiModelProperty(value = "部门id")
    private Long deptId;

    @ApiModelProperty(value = "备注")
    private String remark;
}
